#include "StdAfx.h"
#include "MainRealDlg.h"
#include "WceUiDlg.h"
#include "WceUiLayerCtrl.h"
#include "Engine.h"
CMainRealDlg::CMainRealDlg(ILauncher *plauncher)
{
	m_pLauncher=plauncher;
}

CMainRealDlg::~CMainRealDlg(void)
{
}

void CMainRealDlg::OnInitDialog()
{
	CWceUiDlg* pDlg = GetLayerCtrl()->CreateDlg(Engine::GetInstance()->GetLauncher()->GetAppName()/*m_pLauncher->GetAppName()*/);
	ASSERT(NULL != pDlg);
	pDlg->DoModal();
	GetLayerCtrl()->DeleteLayer(pDlg);
	EndDialog(0);
}
